


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <g:set var="entityName" value="${message(code: 'inscricao.label', default: 'Inscricao')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
              <link rel="stylesheet" href="${resource(dir:'css',file:'reset.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'960.css')}" />
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <style type="text/css" >
          .spacer {
            height: 10px;
}

p {text-align: justify;
}
input.green{
    background: green;color: #ffffff;
}

          </style>
                    <script type="text/javascript">
function mostra_ajax() {
document.getElementById("imgAjax").style.display = 'block';
}

function esconde_ajax() {
document.getElementById("imgAjax").style.display = 'none';



}
  </script>


    </head>
    <body>
        <div class="body">
            <g:form method="post" action="ajaxSave" >
                <g:hiddenField name="id" value="${inscricaoInstance?.id}" />
                <g:hiddenField name="version" value="${inscricaoInstance?.version}" />

 <div class="spacer"></div><!-- end .spacer -->
        <fieldset><legend>Status:</legend>
 <div class="row">
                     <div class="col_3">

 <g:select id="status" name="status"   from="${inscricaoInstance?.constraints?.status?.inList}" value="${notificaInstance?.status}" ></g:select>
              </div>
 </div>
</fieldset>
  <div class="spacer"></div><!-- end .spacer -->
  <fieldset><legend>Ped&ecirc;ncia :</legend>
                <div class="row">
                <g:each var="entry" in="${roleMap}">
                  <p>  <span>  <g:checkBox  class="col_1" name="${entry.key.authority}" value="${entry.value}"/>
            ${entry.key.authority.encodeAsHTML()}) ${entry.key.descricao.encodeAsHTML()} ${entry.key.authority} </span></p>
             <div class="spacer"></div><!-- end .spacer -->
          </g:each>
 </div>
         </fieldset>
 <div class="spacer"></div><!-- end .spacer -->




  <div class="row">
            <div class="col_2">
              <input type="submit"  onClick="mostra_ajax();" value="Enviar informações" class="cmd green save"/>
            </div>
            <div class="col_1">
              <img src="../images/ajax-loader.gif" alt="carregando" id="imgAjax" style="display: none;" />
            </div>
          </div>




            </g:form>
        </div>
    </body>
</html>

